package extend;

public class ManKind {
    private int sex;
    private int salary;
//    private java.lang.Object System;


    public void manOrWoman() {
        if (sex == 1) {
            System.out.println("sex:man");
        } else if (sex == 0) {
            System.out.println("sex:Woman");
        }

    }
    public void empoyeed(){
        if (salary == 1) {
            System.out.println("job");
        } else if (salary != 0) {
            System.out.println("no job");
        }
    }
   public void setSex(int sex){
        this.sex=sex;
    }
    public int getSex() {
        return sex;
    }
    public void setSalary(int salary){
        this.salary=salary;
    }
    public int getSalary() {
        return salary;
    }
}
